package com.blobfish.fiction.user;

import com.blobfish.fiction.common.model.User;

/**
 * 用户service
 * @author huangbo
 */
public class UserService {
    private User userDao = new User().dao();

    /**
     * 登录方法
     * @param name
     * @return
     */
    public User login(String name) {
        return this.userDao.findFirst("select * from user where user_name = ?", name);
    }
}
